package com.study.extend3;

public class Student extends Person {
    public Student() {
        //super();//调用父类中的无参构造,由虚拟机自动生成
        System.out.println("子类的无参构造");
    }

    public Student(String name, int age) {
        super(name, age);//调用父类的有参构造
    }
}
